package com.ly.gof.create.singleton;

/**
 * @author liuyang
 * @des 线程安全的饿汉模式
 * @Version 1.0
 * @Date: 20/07/2021 15:32
 */
public class HungrySingleton {
    private static final HungrySingleton instance = new HungrySingleton();

    private HungrySingleton() {
    }

    public static HungrySingleton getInstance() {
        return instance;
    }
}
